package didto

import (
	"gitee.com/ichub/goconfig/common/base/baseiface"
	"gitee.com/ichub/goconfig/common/basedi"
)

const singleNameDiDto = "DiDto"

// init
// register
// load
func init() {
	registerBeanDiDto()
}

// register DiDto
func registerBeanDiDto() {
	basedi.RegisterLoadBean(singleNameDiDto, LoadDiDto)
}

func FindBeanDiDto() *DiDto {
	return basedi.FindBean(singleNameDiDto).(*DiDto)
}

func LoadDiDto() baseiface.ISingleton {
	return NewDiDto()
}
